<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<div>Enter some text <input id="in"/> and
    <button onclick="ServerFuncs.double(document.getElementById('in').value).then(function(v) { $('#messageFromSever').append(v+'<br/>');})">
        Click me
    </button>
</div>

Messages from server:
<div id="messageFromSever"></div>

<div data-lift="RoundtripExam"></div>
</body>
</html>